﻿//INSTANT C# NOTE: Formerly VB project-level imports:
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Diagnostics;
using System.Windows.Forms;
using System.Linq;
using System.Xml.Linq;

using Microsoft.IdentityModel.Protocols.WSFederation.Metadata;
using Microsoft.IdentityModel.Protocols.WSIdentity;
using System.ServiceModel;
using System.Security.Cryptography.X509Certificates;

namespace STSFederationMetadataEditor
{
	public partial class frmMain : System.Windows.Forms.Form
	{

		//Form overrides dispose to clean up the component list.
		[System.Diagnostics.DebuggerNonUserCode()]
		protected override void Dispose(bool disposing)
		{
			try
			{
				if (disposing && components != null)
				{
					components.Dispose();
				}
			}
			finally
			{
				base.Dispose(disposing);
			}
		}

		//Required by the Windows Form Designer
		private System.ComponentModel.IContainer components;

		//NOTE: The following procedure is required by the Windows Form Designer
		//It can be modified using the Windows Form Designer.  
		//Do not modify it using the code editor.
		[System.Diagnostics.DebuggerStepThrough()]
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.Windows.Forms.Label CompanyLabel;
            System.Windows.Forms.Label GivenNameLabel;
            System.Windows.Forms.Label SurnameLabel;
            System.Windows.Forms.Label TypeLabel;
            System.Windows.Forms.Label Label3;
            System.Windows.Forms.Label Label4;
            System.Windows.Forms.Label Label5;
            System.Windows.Forms.Label Label1;
            System.Windows.Forms.Label Label2;
            System.Windows.Forms.Label Label8;
            System.Windows.Forms.Label Label7;
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmMain));
            System.Windows.Forms.Label Label10;
            System.Windows.Forms.Label Label9;
            System.Windows.Forms.Label Label6;
            System.Windows.Forms.Label lblThumbprint;
            System.Windows.Forms.Label lblThumbprintDetails;
            System.Windows.Forms.Label lblParsedThumbprint;
            System.Windows.Forms.Label Label11;
            this.Contact_CompanyTextBox = new System.Windows.Forms.TextBox();
            this.Contact_GivenNameTextBox = new System.Windows.Forms.TextBox();
            this.Contact_SurnameTextBox = new System.Windows.Forms.TextBox();
            this.Contact_TypeComboBox = new System.Windows.Forms.ComboBox();
            this.ContactPersonGroupBox = new System.Windows.Forms.GroupBox();
            this.Contact_TelephoneTextBox = new System.Windows.Forms.TextBox();
            this.Contact_EmailTextBox = new System.Windows.Forms.TextBox();
            this.OrganizationGroupBox = new System.Windows.Forms.GroupBox();
            this.Company_URL = new System.Windows.Forms.TextBox();
            this.Company_DisplayName = new System.Windows.Forms.TextBox();
            this.Company_Name = new System.Windows.Forms.TextBox();
            this.cmdLoad = new System.Windows.Forms.Button();
            this.cmdSave = new System.Windows.Forms.Button();
            this.fldFilePath = new System.Windows.Forms.TextBox();
            this.cmdBrowse = new System.Windows.Forms.Button();
            this.OpenMetadataFileDialog = new System.Windows.Forms.OpenFileDialog();
            this.EntityTabControl = new System.Windows.Forms.TabControl();
            this.TabPage1 = new System.Windows.Forms.TabPage();
            this.TabPage2 = new System.Windows.Forms.TabPage();
            this.DisplayClaimCollectionDataGridView = new System.Windows.Forms.DataGridView();
            this.DisplayClaimCollectionBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.cmdAddNewClaim = new System.Windows.Forms.Button();
            this.TabPage3 = new System.Windows.Forms.TabPage();
            this.ActiveEndpointsDataGridView = new System.Windows.Forms.DataGridView();
            this.UrlDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.ActiveEndPointsBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.EndPointsDataSet = new STSFederationMetadataEditor.EndPointsDataSet();
            this.TabPage4 = new System.Windows.Forms.TabPage();
            this.PassiveEndPointsDataGridView = new System.Windows.Forms.DataGridView();
            this.UrlDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
            this.PassiveEndPointsBindingSource = new System.Windows.Forms.BindingSource(this.components);
            this.TabPage5 = new System.Windows.Forms.TabPage();
            this.btnGenerateNewCert = new System.Windows.Forms.Button();
            this.txtOriginalThumbprint = new System.Windows.Forms.TextBox();
            this.grpThumbprint = new System.Windows.Forms.GroupBox();
            this.txtParsedThumbprint = new System.Windows.Forms.TextBox();
            this.txtCopiedThumbprint = new System.Windows.Forms.TextBox();
            this.txtThumbprintValue = new System.Windows.Forms.TextBox();
            this.cmdSelectCertificateFile = new System.Windows.Forms.Button();
            this.cmdSelectInstalledCertificate = new System.Windows.Forms.Button();
            this.Certificate_Signing_Subject = new System.Windows.Forms.TextBox();
            this.chkSignManifest = new System.Windows.Forms.CheckBox();
            this.FooterPanel = new System.Windows.Forms.Panel();
            this.cmdDisplayClaimTypes = new System.Windows.Forms.Button();
            this.HeaderPanel = new System.Windows.Forms.Panel();
            this.issuerUri_TextBox = new System.Windows.Forms.TextBox();
            this.serviceName_TextBox = new System.Windows.Forms.TextBox();
            this.cmdCopyThumbprint = new System.Windows.Forms.Button();
            CompanyLabel = new System.Windows.Forms.Label();
            GivenNameLabel = new System.Windows.Forms.Label();
            SurnameLabel = new System.Windows.Forms.Label();
            TypeLabel = new System.Windows.Forms.Label();
            Label3 = new System.Windows.Forms.Label();
            Label4 = new System.Windows.Forms.Label();
            Label5 = new System.Windows.Forms.Label();
            Label1 = new System.Windows.Forms.Label();
            Label2 = new System.Windows.Forms.Label();
            Label8 = new System.Windows.Forms.Label();
            Label7 = new System.Windows.Forms.Label();
            Label10 = new System.Windows.Forms.Label();
            Label9 = new System.Windows.Forms.Label();
            Label6 = new System.Windows.Forms.Label();
            lblThumbprint = new System.Windows.Forms.Label();
            lblThumbprintDetails = new System.Windows.Forms.Label();
            lblParsedThumbprint = new System.Windows.Forms.Label();
            Label11 = new System.Windows.Forms.Label();
            this.ContactPersonGroupBox.SuspendLayout();
            this.OrganizationGroupBox.SuspendLayout();
            this.EntityTabControl.SuspendLayout();
            this.TabPage1.SuspendLayout();
            this.TabPage2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.DisplayClaimCollectionDataGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.DisplayClaimCollectionBindingSource)).BeginInit();
            this.TabPage3.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.ActiveEndpointsDataGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.ActiveEndPointsBindingSource)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.EndPointsDataSet)).BeginInit();
            this.TabPage4.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.PassiveEndPointsDataGridView)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.PassiveEndPointsBindingSource)).BeginInit();
            this.TabPage5.SuspendLayout();
            this.grpThumbprint.SuspendLayout();
            this.FooterPanel.SuspendLayout();
            this.HeaderPanel.SuspendLayout();
            this.SuspendLayout();
            // 
            // CompanyLabel
            // 
            CompanyLabel.AutoSize = true;
            CompanyLabel.Location = new System.Drawing.Point(11, 74);
            CompanyLabel.Name = "CompanyLabel";
            CompanyLabel.Size = new System.Drawing.Size(54, 13);
            CompanyLabel.TabIndex = 1;
            CompanyLabel.Text = "Company:";
            // 
            // GivenNameLabel
            // 
            GivenNameLabel.AutoSize = true;
            GivenNameLabel.Location = new System.Drawing.Point(11, 22);
            GivenNameLabel.Name = "GivenNameLabel";
            GivenNameLabel.Size = new System.Drawing.Size(38, 13);
            GivenNameLabel.TabIndex = 3;
            GivenNameLabel.Text = "Name:";
            // 
            // SurnameLabel
            // 
            SurnameLabel.AutoSize = true;
            SurnameLabel.Location = new System.Drawing.Point(11, 48);
            SurnameLabel.Name = "SurnameLabel";
            SurnameLabel.Size = new System.Drawing.Size(52, 13);
            SurnameLabel.TabIndex = 5;
            SurnameLabel.Text = "Surname:";
            // 
            // TypeLabel
            // 
            TypeLabel.AutoSize = true;
            TypeLabel.Location = new System.Drawing.Point(11, 101);
            TypeLabel.Name = "TypeLabel";
            TypeLabel.Size = new System.Drawing.Size(34, 13);
            TypeLabel.TabIndex = 7;
            TypeLabel.Text = "Type:";
            // 
            // Label3
            // 
            Label3.AutoSize = true;
            Label3.Location = new System.Drawing.Point(6, 74);
            Label3.Name = "Label3";
            Label3.Size = new System.Drawing.Size(32, 13);
            Label3.TabIndex = 7;
            Label3.Text = "URL:";
            // 
            // Label4
            // 
            Label4.AutoSize = true;
            Label4.Location = new System.Drawing.Point(6, 22);
            Label4.Name = "Label4";
            Label4.Size = new System.Drawing.Size(38, 13);
            Label4.TabIndex = 9;
            Label4.Text = "Name:";
            // 
            // Label5
            // 
            Label5.AutoSize = true;
            Label5.Location = new System.Drawing.Point(6, 48);
            Label5.Name = "Label5";
            Label5.Size = new System.Drawing.Size(73, 13);
            Label5.TabIndex = 11;
            Label5.Text = "Display name:";
            // 
            // Label1
            // 
            Label1.AutoSize = true;
            Label1.Location = new System.Drawing.Point(11, 128);
            Label1.Name = "Label1";
            Label1.Size = new System.Drawing.Size(35, 13);
            Label1.TabIndex = 9;
            Label1.Text = "Email:";
            // 
            // Label2
            // 
            Label2.AutoSize = true;
            Label2.Location = new System.Drawing.Point(11, 154);
            Label2.Name = "Label2";
            Label2.Size = new System.Drawing.Size(61, 13);
            Label2.TabIndex = 11;
            Label2.Text = "Telephone:";
            // 
            // Label8
            // 
            Label8.AutoSize = true;
            Label8.Location = new System.Drawing.Point(4, 9);
            Label8.Name = "Label8";
            Label8.Size = new System.Drawing.Size(114, 13);
            Label8.TabIndex = 13;
            Label8.Text = "Metadata file location :";
            // 
            // Label7
            // 
            Label7.Location = new System.Drawing.Point(3, 199);
            Label7.Name = "Label7";
            Label7.Size = new System.Drawing.Size(764, 36);
            Label7.TabIndex = 14;
            Label7.Text = resources.GetString("Label7.Text");
            // 
            // Label10
            // 
            Label10.AutoSize = true;
            Label10.Location = new System.Drawing.Point(4, 54);
            Label10.Name = "Label10";
            Label10.Size = new System.Drawing.Size(75, 13);
            Label10.TabIndex = 18;
            Label10.Text = "Service name:";
            // 
            // Label9
            // 
            Label9.AutoSize = true;
            Label9.Location = new System.Drawing.Point(4, 32);
            Label9.Name = "Label9";
            Label9.Size = new System.Drawing.Size(75, 13);
            Label9.TabIndex = 16;
            Label9.Text = "Service name:";
            // 
            // Label6
            // 
            Label6.AutoSize = true;
            Label6.Location = new System.Drawing.Point(9, 12);
            Label6.Name = "Label6";
            Label6.Size = new System.Drawing.Size(161, 13);
            Label6.TabIndex = 1;
            Label6.Text = "Selected STS signing certificate:";
            // 
            // lblThumbprint
            // 
            lblThumbprint.AutoSize = true;
            lblThumbprint.Location = new System.Drawing.Point(9, 42);
            lblThumbprint.Name = "lblThumbprint";
            lblThumbprint.Size = new System.Drawing.Size(60, 13);
            lblThumbprint.TabIndex = 6;
            lblThumbprint.Text = "Thumbprint";
            // 
            // lblThumbprintDetails
            // 
            lblThumbprintDetails.AutoSize = true;
            lblThumbprintDetails.Location = new System.Drawing.Point(16, 28);
            lblThumbprintDetails.Name = "lblThumbprintDetails";
            lblThumbprintDetails.Size = new System.Drawing.Size(131, 13);
            lblThumbprintDetails.TabIndex = 2;
            lblThumbprintDetails.Text = "Copied Thumbprint Details";
            // 
            // lblParsedThumbprint
            // 
            lblParsedThumbprint.AutoSize = true;
            lblParsedThumbprint.Location = new System.Drawing.Point(16, 62);
            lblParsedThumbprint.Name = "lblParsedThumbprint";
            lblParsedThumbprint.Size = new System.Drawing.Size(108, 13);
            lblParsedThumbprint.TabIndex = 3;
            lblParsedThumbprint.Text = "Resultant Thumbprint";
            // 
            // Label11
            // 
            Label11.AutoSize = true;
            Label11.Location = new System.Drawing.Point(9, 72);
            Label11.Name = "Label11";
            Label11.Size = new System.Drawing.Size(98, 13);
            Label11.TabIndex = 9;
            Label11.Text = "Original Thumbprint";
            // 
            // Contact_CompanyTextBox
            // 
            this.Contact_CompanyTextBox.Location = new System.Drawing.Point(86, 71);
            this.Contact_CompanyTextBox.Name = "Contact_CompanyTextBox";
            this.Contact_CompanyTextBox.Size = new System.Drawing.Size(276, 20);
            this.Contact_CompanyTextBox.TabIndex = 2;
            // 
            // Contact_GivenNameTextBox
            // 
            this.Contact_GivenNameTextBox.Location = new System.Drawing.Point(86, 19);
            this.Contact_GivenNameTextBox.Name = "Contact_GivenNameTextBox";
            this.Contact_GivenNameTextBox.Size = new System.Drawing.Size(276, 20);
            this.Contact_GivenNameTextBox.TabIndex = 4;
            // 
            // Contact_SurnameTextBox
            // 
            this.Contact_SurnameTextBox.Location = new System.Drawing.Point(86, 45);
            this.Contact_SurnameTextBox.Name = "Contact_SurnameTextBox";
            this.Contact_SurnameTextBox.Size = new System.Drawing.Size(276, 20);
            this.Contact_SurnameTextBox.TabIndex = 6;
            // 
            // Contact_TypeComboBox
            // 
            this.Contact_TypeComboBox.FormattingEnabled = true;
            this.Contact_TypeComboBox.Location = new System.Drawing.Point(86, 98);
            this.Contact_TypeComboBox.Name = "Contact_TypeComboBox";
            this.Contact_TypeComboBox.Size = new System.Drawing.Size(276, 21);
            this.Contact_TypeComboBox.TabIndex = 8;
            // 
            // ContactPersonGroupBox
            // 
            this.ContactPersonGroupBox.Controls.Add(Label2);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_TelephoneTextBox);
            this.ContactPersonGroupBox.Controls.Add(Label1);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_EmailTextBox);
            this.ContactPersonGroupBox.Controls.Add(CompanyLabel);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_TypeComboBox);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_CompanyTextBox);
            this.ContactPersonGroupBox.Controls.Add(TypeLabel);
            this.ContactPersonGroupBox.Controls.Add(GivenNameLabel);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_SurnameTextBox);
            this.ContactPersonGroupBox.Controls.Add(this.Contact_GivenNameTextBox);
            this.ContactPersonGroupBox.Controls.Add(SurnameLabel);
            this.ContactPersonGroupBox.Location = new System.Drawing.Point(6, 9);
            this.ContactPersonGroupBox.Name = "ContactPersonGroupBox";
            this.ContactPersonGroupBox.Size = new System.Drawing.Size(372, 181);
            this.ContactPersonGroupBox.TabIndex = 9;
            this.ContactPersonGroupBox.TabStop = false;
            this.ContactPersonGroupBox.Text = "Contact Person";
            // 
            // Contact_TelephoneTextBox
            // 
            this.Contact_TelephoneTextBox.Location = new System.Drawing.Point(86, 151);
            this.Contact_TelephoneTextBox.Name = "Contact_TelephoneTextBox";
            this.Contact_TelephoneTextBox.Size = new System.Drawing.Size(276, 20);
            this.Contact_TelephoneTextBox.TabIndex = 12;
            // 
            // Contact_EmailTextBox
            // 
            this.Contact_EmailTextBox.Location = new System.Drawing.Point(86, 125);
            this.Contact_EmailTextBox.Name = "Contact_EmailTextBox";
            this.Contact_EmailTextBox.Size = new System.Drawing.Size(276, 20);
            this.Contact_EmailTextBox.TabIndex = 10;
            // 
            // OrganizationGroupBox
            // 
            this.OrganizationGroupBox.Controls.Add(Label3);
            this.OrganizationGroupBox.Controls.Add(this.Company_URL);
            this.OrganizationGroupBox.Controls.Add(Label4);
            this.OrganizationGroupBox.Controls.Add(this.Company_DisplayName);
            this.OrganizationGroupBox.Controls.Add(this.Company_Name);
            this.OrganizationGroupBox.Controls.Add(Label5);
            this.OrganizationGroupBox.Location = new System.Drawing.Point(396, 9);
            this.OrganizationGroupBox.Name = "OrganizationGroupBox";
            this.OrganizationGroupBox.Size = new System.Drawing.Size(371, 99);
            this.OrganizationGroupBox.TabIndex = 10;
            this.OrganizationGroupBox.TabStop = false;
            this.OrganizationGroupBox.Text = "Organization";
            // 
            // Company_URL
            // 
            this.Company_URL.Location = new System.Drawing.Point(81, 71);
            this.Company_URL.Name = "Company_URL";
            this.Company_URL.Size = new System.Drawing.Size(276, 20);
            this.Company_URL.TabIndex = 8;
            // 
            // Company_DisplayName
            // 
            this.Company_DisplayName.Location = new System.Drawing.Point(81, 45);
            this.Company_DisplayName.Name = "Company_DisplayName";
            this.Company_DisplayName.Size = new System.Drawing.Size(276, 20);
            this.Company_DisplayName.TabIndex = 12;
            // 
            // Company_Name
            // 
            this.Company_Name.Location = new System.Drawing.Point(81, 19);
            this.Company_Name.Name = "Company_Name";
            this.Company_Name.Size = new System.Drawing.Size(276, 20);
            this.Company_Name.TabIndex = 10;
            // 
            // cmdLoad
            // 
            this.cmdLoad.Location = new System.Drawing.Point(16, 6);
            this.cmdLoad.Name = "cmdLoad";
            this.cmdLoad.Size = new System.Drawing.Size(105, 23);
            this.cmdLoad.TabIndex = 11;
            this.cmdLoad.Text = "Load metadata";
            this.cmdLoad.UseVisualStyleBackColor = true;
            this.cmdLoad.Click += new System.EventHandler(this.cmdLoad_Click);
            // 
            // cmdSave
            // 
            this.cmdSave.Location = new System.Drawing.Point(673, 6);
            this.cmdSave.Name = "cmdSave";
            this.cmdSave.Size = new System.Drawing.Size(105, 23);
            this.cmdSave.TabIndex = 12;
            this.cmdSave.Text = "Save metadata";
            this.cmdSave.UseVisualStyleBackColor = true;
            this.cmdSave.Click += new System.EventHandler(this.cmdSave_Click);
            // 
            // fldFilePath
            // 
            this.fldFilePath.Location = new System.Drawing.Point(124, 6);
            this.fldFilePath.Name = "fldFilePath";
            this.fldFilePath.Size = new System.Drawing.Size(473, 20);
            this.fldFilePath.TabIndex = 14;
            // 
            // cmdBrowse
            // 
            this.cmdBrowse.Location = new System.Drawing.Point(604, 5);
            this.cmdBrowse.Name = "cmdBrowse";
            this.cmdBrowse.Size = new System.Drawing.Size(75, 23);
            this.cmdBrowse.TabIndex = 15;
            this.cmdBrowse.Text = "Browse...";
            this.cmdBrowse.UseVisualStyleBackColor = true;
            this.cmdBrowse.Click += new System.EventHandler(this.cmdBrowse_Click);
            // 
            // OpenMetadataFileDialog
            // 
            this.OpenMetadataFileDialog.CheckFileExists = false;
            this.OpenMetadataFileDialog.DefaultExt = "xml";
            this.OpenMetadataFileDialog.FileName = "FederationMetadata.xml";
            this.OpenMetadataFileDialog.Filter = "Metadata file|*.xml";
            this.OpenMetadataFileDialog.Title = "Select you custom STS metadata file";
            // 
            // EntityTabControl
            // 
            this.EntityTabControl.Controls.Add(this.TabPage1);
            this.EntityTabControl.Controls.Add(this.TabPage2);
            this.EntityTabControl.Controls.Add(this.TabPage3);
            this.EntityTabControl.Controls.Add(this.TabPage4);
            this.EntityTabControl.Controls.Add(this.TabPage5);
            this.EntityTabControl.Dock = System.Windows.Forms.DockStyle.Fill;
            this.EntityTabControl.Location = new System.Drawing.Point(0, 75);
            this.EntityTabControl.Name = "EntityTabControl";
            this.EntityTabControl.SelectedIndex = 0;
            this.EntityTabControl.Size = new System.Drawing.Size(790, 274);
            this.EntityTabControl.TabIndex = 16;
            // 
            // TabPage1
            // 
            this.TabPage1.Controls.Add(Label7);
            this.TabPage1.Controls.Add(this.ContactPersonGroupBox);
            this.TabPage1.Controls.Add(this.OrganizationGroupBox);
            this.TabPage1.Location = new System.Drawing.Point(4, 22);
            this.TabPage1.Name = "TabPage1";
            this.TabPage1.Padding = new System.Windows.Forms.Padding(3);
            this.TabPage1.Size = new System.Drawing.Size(782, 248);
            this.TabPage1.TabIndex = 0;
            this.TabPage1.Text = "Contact information";
            this.TabPage1.UseVisualStyleBackColor = true;
            // 
            // TabPage2
            // 
            this.TabPage2.AutoScroll = true;
            this.TabPage2.Controls.Add(this.DisplayClaimCollectionDataGridView);
            this.TabPage2.Controls.Add(this.cmdAddNewClaim);
            this.TabPage2.Location = new System.Drawing.Point(4, 22);
            this.TabPage2.Name = "TabPage2";
            this.TabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.TabPage2.Size = new System.Drawing.Size(782, 248);
            this.TabPage2.TabIndex = 1;
            this.TabPage2.Text = "Claims";
            this.TabPage2.UseVisualStyleBackColor = true;
            // 
            // DisplayClaimCollectionDataGridView
            // 
            this.DisplayClaimCollectionDataGridView.AutoGenerateColumns = false;
            this.DisplayClaimCollectionDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.DisplayClaimCollectionDataGridView.DataSource = this.DisplayClaimCollectionBindingSource;
            this.DisplayClaimCollectionDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.DisplayClaimCollectionDataGridView.Location = new System.Drawing.Point(3, 3);
            this.DisplayClaimCollectionDataGridView.Name = "DisplayClaimCollectionDataGridView";
            this.DisplayClaimCollectionDataGridView.Size = new System.Drawing.Size(776, 219);
            this.DisplayClaimCollectionDataGridView.TabIndex = 0;
            // 
            // cmdAddNewClaim
            // 
            this.cmdAddNewClaim.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.cmdAddNewClaim.Location = new System.Drawing.Point(3, 222);
            this.cmdAddNewClaim.Name = "cmdAddNewClaim";
            this.cmdAddNewClaim.Size = new System.Drawing.Size(776, 23);
            this.cmdAddNewClaim.TabIndex = 1;
            this.cmdAddNewClaim.Text = "Add claim";
            this.cmdAddNewClaim.UseVisualStyleBackColor = true;
            this.cmdAddNewClaim.Click += new System.EventHandler(this.cmdAddNewClaim_Click);
            // 
            // TabPage3
            // 
            this.TabPage3.Controls.Add(this.ActiveEndpointsDataGridView);
            this.TabPage3.Location = new System.Drawing.Point(4, 22);
            this.TabPage3.Name = "TabPage3";
            this.TabPage3.Size = new System.Drawing.Size(782, 248);
            this.TabPage3.TabIndex = 2;
            this.TabPage3.Text = "Active endpoints";
            this.TabPage3.UseVisualStyleBackColor = true;
            // 
            // ActiveEndpointsDataGridView
            // 
            this.ActiveEndpointsDataGridView.AllowUserToOrderColumns = true;
            this.ActiveEndpointsDataGridView.AutoGenerateColumns = false;
            this.ActiveEndpointsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.ActiveEndpointsDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.UrlDataGridViewTextBoxColumn});
            this.ActiveEndpointsDataGridView.DataSource = this.ActiveEndPointsBindingSource;
            this.ActiveEndpointsDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.ActiveEndpointsDataGridView.Location = new System.Drawing.Point(0, 0);
            this.ActiveEndpointsDataGridView.Name = "ActiveEndpointsDataGridView";
            this.ActiveEndpointsDataGridView.Size = new System.Drawing.Size(782, 248);
            this.ActiveEndpointsDataGridView.TabIndex = 0;
            // 
            // UrlDataGridViewTextBoxColumn
            // 
            this.UrlDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.UrlDataGridViewTextBoxColumn.DataPropertyName = "Url";
            this.UrlDataGridViewTextBoxColumn.HeaderText = "Url";
            this.UrlDataGridViewTextBoxColumn.Name = "UrlDataGridViewTextBoxColumn";
            // 
            // ActiveEndPointsBindingSource
            // 
            this.ActiveEndPointsBindingSource.DataMember = "ActiveEndPoints";
            this.ActiveEndPointsBindingSource.DataSource = this.EndPointsDataSet;
            // 
            // EndPointsDataSet
            // 
            this.EndPointsDataSet.DataSetName = "EndPointsDataSet";
            this.EndPointsDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
            // 
            // TabPage4
            // 
            this.TabPage4.Controls.Add(this.PassiveEndPointsDataGridView);
            this.TabPage4.Location = new System.Drawing.Point(4, 22);
            this.TabPage4.Name = "TabPage4";
            this.TabPage4.Size = new System.Drawing.Size(782, 248);
            this.TabPage4.TabIndex = 3;
            this.TabPage4.Text = "Passive endpoints";
            this.TabPage4.UseVisualStyleBackColor = true;
            // 
            // PassiveEndPointsDataGridView
            // 
            this.PassiveEndPointsDataGridView.AutoGenerateColumns = false;
            this.PassiveEndPointsDataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.PassiveEndPointsDataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
            this.UrlDataGridViewTextBoxColumn1});
            this.PassiveEndPointsDataGridView.DataSource = this.PassiveEndPointsBindingSource;
            this.PassiveEndPointsDataGridView.Dock = System.Windows.Forms.DockStyle.Fill;
            this.PassiveEndPointsDataGridView.Location = new System.Drawing.Point(0, 0);
            this.PassiveEndPointsDataGridView.Name = "PassiveEndPointsDataGridView";
            this.PassiveEndPointsDataGridView.Size = new System.Drawing.Size(782, 248);
            this.PassiveEndPointsDataGridView.TabIndex = 0;
            // 
            // UrlDataGridViewTextBoxColumn1
            // 
            this.UrlDataGridViewTextBoxColumn1.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
            this.UrlDataGridViewTextBoxColumn1.DataPropertyName = "Url";
            this.UrlDataGridViewTextBoxColumn1.HeaderText = "Url";
            this.UrlDataGridViewTextBoxColumn1.Name = "UrlDataGridViewTextBoxColumn1";
            // 
            // PassiveEndPointsBindingSource
            // 
            this.PassiveEndPointsBindingSource.DataMember = "PassiveEndPoints";
            this.PassiveEndPointsBindingSource.DataSource = this.EndPointsDataSet;
            // 
            // TabPage5
            // 
            this.TabPage5.Controls.Add(this.cmdCopyThumbprint);
            this.TabPage5.Controls.Add(this.btnGenerateNewCert);
            this.TabPage5.Controls.Add(this.txtOriginalThumbprint);
            this.TabPage5.Controls.Add(Label11);
            this.TabPage5.Controls.Add(this.grpThumbprint);
            this.TabPage5.Controls.Add(this.txtThumbprintValue);
            this.TabPage5.Controls.Add(lblThumbprint);
            this.TabPage5.Controls.Add(this.cmdSelectCertificateFile);
            this.TabPage5.Controls.Add(this.cmdSelectInstalledCertificate);
            this.TabPage5.Controls.Add(this.Certificate_Signing_Subject);
            this.TabPage5.Controls.Add(Label6);
            this.TabPage5.Controls.Add(this.chkSignManifest);
            this.TabPage5.Location = new System.Drawing.Point(4, 22);
            this.TabPage5.Name = "TabPage5";
            this.TabPage5.Padding = new System.Windows.Forms.Padding(3);
            this.TabPage5.Size = new System.Drawing.Size(782, 248);
            this.TabPage5.TabIndex = 4;
            this.TabPage5.Text = "Certificate";
            this.TabPage5.UseVisualStyleBackColor = true;
            // 
            // btnGenerateNewCert
            // 
            this.btnGenerateNewCert.Location = new System.Drawing.Point(279, 99);
            this.btnGenerateNewCert.Name = "btnGenerateNewCert";
            this.btnGenerateNewCert.Size = new System.Drawing.Size(100, 23);
            this.btnGenerateNewCert.TabIndex = 13;
            this.btnGenerateNewCert.Text = "Generate New...";
            this.btnGenerateNewCert.UseVisualStyleBackColor = true;
            this.btnGenerateNewCert.Click += new System.EventHandler(this.btnGenerateNewCert_Click);
            // 
            // txtOriginalThumbprint
            // 
            this.txtOriginalThumbprint.Location = new System.Drawing.Point(182, 73);
            this.txtOriginalThumbprint.Name = "txtOriginalThumbprint";
            this.txtOriginalThumbprint.ReadOnly = true;
            this.txtOriginalThumbprint.Size = new System.Drawing.Size(485, 20);
            this.txtOriginalThumbprint.TabIndex = 10;
            // 
            // grpThumbprint
            // 
            this.grpThumbprint.Controls.Add(this.txtParsedThumbprint);
            this.grpThumbprint.Controls.Add(this.txtCopiedThumbprint);
            this.grpThumbprint.Controls.Add(lblParsedThumbprint);
            this.grpThumbprint.Controls.Add(lblThumbprintDetails);
            this.grpThumbprint.Location = new System.Drawing.Point(12, 142);
            this.grpThumbprint.Name = "grpThumbprint";
            this.grpThumbprint.Size = new System.Drawing.Size(734, 100);
            this.grpThumbprint.TabIndex = 8;
            this.grpThumbprint.TabStop = false;
            this.grpThumbprint.Text = "Thumbprint Parser";
            // 
            // txtParsedThumbprint
            // 
            this.txtParsedThumbprint.Location = new System.Drawing.Point(170, 59);
            this.txtParsedThumbprint.Name = "txtParsedThumbprint";
            this.txtParsedThumbprint.ReadOnly = true;
            this.txtParsedThumbprint.Size = new System.Drawing.Size(485, 20);
            this.txtParsedThumbprint.TabIndex = 5;
            // 
            // txtCopiedThumbprint
            // 
            this.txtCopiedThumbprint.Location = new System.Drawing.Point(170, 25);
            this.txtCopiedThumbprint.Name = "txtCopiedThumbprint";
            this.txtCopiedThumbprint.Size = new System.Drawing.Size(485, 20);
            this.txtCopiedThumbprint.TabIndex = 4;
            this.txtCopiedThumbprint.TextChanged += new System.EventHandler(this.txtCopiedThumbprint_TextChanged);
            // 
            // txtThumbprintValue
            // 
            this.txtThumbprintValue.Location = new System.Drawing.Point(182, 39);
            this.txtThumbprintValue.Name = "txtThumbprintValue";
            this.txtThumbprintValue.ReadOnly = true;
            this.txtThumbprintValue.Size = new System.Drawing.Size(485, 20);
            this.txtThumbprintValue.TabIndex = 7;
            // 
            // cmdSelectCertificateFile
            // 
            this.cmdSelectCertificateFile.Location = new System.Drawing.Point(185, 99);
            this.cmdSelectCertificateFile.Name = "cmdSelectCertificateFile";
            this.cmdSelectCertificateFile.Size = new System.Drawing.Size(88, 23);
            this.cmdSelectCertificateFile.TabIndex = 4;
            this.cmdSelectCertificateFile.Text = "Select from file";
            this.cmdSelectCertificateFile.UseVisualStyleBackColor = true;
            this.cmdSelectCertificateFile.Click += new System.EventHandler(this.cmdSelectCertificateFile_Click);
            // 
            // cmdSelectInstalledCertificate
            // 
            this.cmdSelectInstalledCertificate.Location = new System.Drawing.Point(12, 99);
            this.cmdSelectInstalledCertificate.Name = "cmdSelectInstalledCertificate";
            this.cmdSelectInstalledCertificate.Size = new System.Drawing.Size(167, 23);
            this.cmdSelectInstalledCertificate.TabIndex = 3;
            this.cmdSelectInstalledCertificate.Text = "Select from installed certificates";
            this.cmdSelectInstalledCertificate.UseVisualStyleBackColor = true;
            this.cmdSelectInstalledCertificate.Click += new System.EventHandler(this.cmdSelectInstalledCertificate_Click);
            // 
            // Certificate_Signing_Subject
            // 
            this.Certificate_Signing_Subject.Location = new System.Drawing.Point(182, 8);
            this.Certificate_Signing_Subject.Name = "Certificate_Signing_Subject";
            this.Certificate_Signing_Subject.ReadOnly = true;
            this.Certificate_Signing_Subject.Size = new System.Drawing.Size(485, 20);
            this.Certificate_Signing_Subject.TabIndex = 2;
            // 
            // chkSignManifest
            // 
            this.chkSignManifest.AutoSize = true;
            this.chkSignManifest.Location = new System.Drawing.Point(671, 12);
            this.chkSignManifest.Name = "chkSignManifest";
            this.chkSignManifest.Size = new System.Drawing.Size(105, 17);
            this.chkSignManifest.TabIndex = 0;
            this.chkSignManifest.Text = "Sign manifest file";
            this.chkSignManifest.UseVisualStyleBackColor = true;
            // 
            // FooterPanel
            // 
            this.FooterPanel.Controls.Add(this.cmdDisplayClaimTypes);
            this.FooterPanel.Controls.Add(this.cmdLoad);
            this.FooterPanel.Controls.Add(this.cmdSave);
            this.FooterPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
            this.FooterPanel.Location = new System.Drawing.Point(0, 349);
            this.FooterPanel.Name = "FooterPanel";
            this.FooterPanel.Size = new System.Drawing.Size(790, 34);
            this.FooterPanel.TabIndex = 17;
            // 
            // cmdDisplayClaimTypes
            // 
            this.cmdDisplayClaimTypes.Location = new System.Drawing.Point(136, 6);
            this.cmdDisplayClaimTypes.Name = "cmdDisplayClaimTypes";
            this.cmdDisplayClaimTypes.Size = new System.Drawing.Size(123, 23);
            this.cmdDisplayClaimTypes.TabIndex = 13;
            this.cmdDisplayClaimTypes.Text = "Display Claim Types";
            this.cmdDisplayClaimTypes.UseVisualStyleBackColor = true;
            this.cmdDisplayClaimTypes.Click += new System.EventHandler(this.cmdDisplayClaimTypes_Click);
            // 
            // HeaderPanel
            // 
            this.HeaderPanel.Controls.Add(this.issuerUri_TextBox);
            this.HeaderPanel.Controls.Add(Label10);
            this.HeaderPanel.Controls.Add(this.serviceName_TextBox);
            this.HeaderPanel.Controls.Add(Label9);
            this.HeaderPanel.Controls.Add(this.fldFilePath);
            this.HeaderPanel.Controls.Add(Label8);
            this.HeaderPanel.Controls.Add(this.cmdBrowse);
            this.HeaderPanel.Dock = System.Windows.Forms.DockStyle.Top;
            this.HeaderPanel.Location = new System.Drawing.Point(0, 0);
            this.HeaderPanel.Name = "HeaderPanel";
            this.HeaderPanel.Size = new System.Drawing.Size(790, 75);
            this.HeaderPanel.TabIndex = 18;
            // 
            // issuerUri_TextBox
            // 
            this.issuerUri_TextBox.Location = new System.Drawing.Point(124, 50);
            this.issuerUri_TextBox.Name = "issuerUri_TextBox";
            this.issuerUri_TextBox.Size = new System.Drawing.Size(473, 20);
            this.issuerUri_TextBox.TabIndex = 19;
            // 
            // serviceName_TextBox
            // 
            this.serviceName_TextBox.Location = new System.Drawing.Point(124, 28);
            this.serviceName_TextBox.Name = "serviceName_TextBox";
            this.serviceName_TextBox.Size = new System.Drawing.Size(473, 20);
            this.serviceName_TextBox.TabIndex = 17;
            // 
            // cmdCopyThumbprint
            // 
            this.cmdCopyThumbprint.Location = new System.Drawing.Point(674, 42);
            this.cmdCopyThumbprint.Name = "cmdCopyThumbprint";
            this.cmdCopyThumbprint.Size = new System.Drawing.Size(75, 23);
            this.cmdCopyThumbprint.TabIndex = 14;
            this.cmdCopyThumbprint.Text = "Copy";
            this.cmdCopyThumbprint.UseVisualStyleBackColor = true;
            this.cmdCopyThumbprint.Click += new System.EventHandler(this.cmdCopyThumbprint_Click);
            // 
            // frmMain
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(790, 383);
            this.Controls.Add(this.EntityTabControl);
            this.Controls.Add(this.HeaderPanel);
            this.Controls.Add(this.FooterPanel);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "frmMain";
            this.Text = "Custom STS Metadata File Editor";
            this.Load += new System.EventHandler(this.frmMain_Load);
            this.ContactPersonGroupBox.ResumeLayout(false);
            this.ContactPersonGroupBox.PerformLayout();
            this.OrganizationGroupBox.ResumeLayout(false);
            this.OrganizationGroupBox.PerformLayout();
            this.EntityTabControl.ResumeLayout(false);
            this.TabPage1.ResumeLayout(false);
            this.TabPage2.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.DisplayClaimCollectionDataGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.DisplayClaimCollectionBindingSource)).EndInit();
            this.TabPage3.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.ActiveEndpointsDataGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.ActiveEndPointsBindingSource)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.EndPointsDataSet)).EndInit();
            this.TabPage4.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this.PassiveEndPointsDataGridView)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.PassiveEndPointsBindingSource)).EndInit();
            this.TabPage5.ResumeLayout(false);
            this.TabPage5.PerformLayout();
            this.grpThumbprint.ResumeLayout(false);
            this.grpThumbprint.PerformLayout();
            this.FooterPanel.ResumeLayout(false);
            this.HeaderPanel.ResumeLayout(false);
            this.HeaderPanel.PerformLayout();
            this.ResumeLayout(false);

		}
		internal System.Windows.Forms.TextBox Contact_CompanyTextBox;
		internal System.Windows.Forms.TextBox Contact_GivenNameTextBox;
		internal System.Windows.Forms.TextBox Contact_SurnameTextBox;
		internal System.Windows.Forms.ComboBox Contact_TypeComboBox;
		internal System.Windows.Forms.GroupBox ContactPersonGroupBox;
		internal System.Windows.Forms.GroupBox OrganizationGroupBox;
		internal System.Windows.Forms.TextBox Company_URL;
		internal System.Windows.Forms.TextBox Company_DisplayName;
		internal System.Windows.Forms.TextBox Company_Name;
		internal System.Windows.Forms.Button cmdLoad;
		internal System.Windows.Forms.Button cmdSave;
		internal System.Windows.Forms.TextBox fldFilePath;
		internal System.Windows.Forms.Button cmdBrowse;
		internal System.Windows.Forms.OpenFileDialog OpenMetadataFileDialog;
		internal System.Windows.Forms.TabControl EntityTabControl;
		internal System.Windows.Forms.TabPage TabPage1;
		internal System.Windows.Forms.TabPage TabPage2;
		internal System.Windows.Forms.Panel FooterPanel;
		internal System.Windows.Forms.Panel HeaderPanel;
		internal System.Windows.Forms.TextBox issuerUri_TextBox;
		internal System.Windows.Forms.TextBox serviceName_TextBox;
		internal System.Windows.Forms.TextBox Contact_TelephoneTextBox;
		internal System.Windows.Forms.TextBox Contact_EmailTextBox;
		internal System.Windows.Forms.TabPage TabPage3;
		internal System.Windows.Forms.TabPage TabPage4;
		internal System.Windows.Forms.DataGridView DisplayClaimCollectionDataGridView;
		internal System.Windows.Forms.DataGridView ActiveEndpointsDataGridView;
		internal System.Windows.Forms.BindingSource ActiveEndPointsBindingSource;
		internal STSFederationMetadataEditor.EndPointsDataSet EndPointsDataSet;
		internal System.Windows.Forms.DataGridView PassiveEndPointsDataGridView;
		internal System.Windows.Forms.DataGridViewTextBoxColumn UrlDataGridViewTextBoxColumn1;
		internal System.Windows.Forms.BindingSource PassiveEndPointsBindingSource;
		internal System.Windows.Forms.Button cmdAddNewClaim;
		internal System.Windows.Forms.BindingSource DisplayClaimCollectionBindingSource;
		internal System.Windows.Forms.DataGridViewTextBoxColumn UrlDataGridViewTextBoxColumn;
		internal System.Windows.Forms.TabPage TabPage5;
		internal System.Windows.Forms.CheckBox chkSignManifest;
		internal System.Windows.Forms.Button cmdSelectInstalledCertificate;
		internal System.Windows.Forms.TextBox Certificate_Signing_Subject;
		internal System.Windows.Forms.Button cmdSelectCertificateFile;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn1;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn2;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn3;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DataGridViewTextBoxColumn4;
		internal System.Windows.Forms.DataGridViewCheckBoxColumn DataGridViewCheckBoxColumn1;
		internal System.Windows.Forms.DataGridViewTextBoxColumn ClaimTypeDataGridViewTextBoxColumn;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DisplayTagDataGridViewTextBoxColumn;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DescriptionDataGridViewTextBoxColumn;
		internal System.Windows.Forms.DataGridViewTextBoxColumn DisplayValueDataGridViewTextBoxColumn;
		internal System.Windows.Forms.DataGridViewCheckBoxColumn OptionalDataGridViewCheckBoxColumn;
		internal System.Windows.Forms.TextBox txtThumbprintValue;
		internal System.Windows.Forms.GroupBox grpThumbprint;
		internal System.Windows.Forms.TextBox txtParsedThumbprint;
		internal System.Windows.Forms.TextBox txtCopiedThumbprint;
		internal System.Windows.Forms.TextBox txtOriginalThumbprint;
		internal System.Windows.Forms.Button cmdDisplayClaimTypes;
        private DataGridViewTextBoxColumn claimTypeDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn displayTagDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;
        private DataGridViewTextBoxColumn displayValueDataGridViewTextBoxColumn;
        private DataGridViewCheckBoxColumn optionalDataGridViewCheckBoxColumn;
        private Button btnGenerateNewCert;
        private Button cmdCopyThumbprint;

	}

}